#include <QDebug>

#include "ZappyServer.h"

ZappyServer::ZappyServer( void )
{
    _port = 4242;
    _isIpv6 = false;
    _isSSL = false;
}

ZappyServer::~ZappyServer( void )
{

}

quint16
ZappyServer::port( void )
{
    return _port;
}

void
ZappyServer::setPort( quint16 port )
{
    this->_port = port;
}

void
ZappyServer::start( void )
{
    qDebug() << "Server Start";
}

void
ZappyServer::stop( void )
{
    qDebug() << "Server Stop";
}

void ZappyServer::setIpv6( void )
{
    _isIpv6 = true;
}

void ZappyServer::setSSL( void )
{
    _isSSL = true;
    _port = 2424;
}

bool ZappyServer::isIpv6(void )
{
    return _isIpv6;
}

bool ZappyServer::isSSL(void )
{
    return _isSSL;
}


